package com.xiaoKe.zhonghzu.global.base;
import android.app.Application;
import android.content.Intent;


import com.xiaoKe.zhonghzu.global.okhttp.AppManager;
import com.xiaoKe.zhonghzu.global.tool.GlobalExceptionHandler;

import lombok.Data;


/**
 * @ProjectName : xiaoke-pad-zhongzhu
 * @Author : Shijingna
 * @Time : 2024/7/12 17:08
 * @Description : 文件描述
 */
@Data
public class BaseApplication extends Application {
    public static Application instance;
    public static Intent serviceIntent;
    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        AppManager.getInstance().init(this);

        // 初始化全局异常捕捉
        GlobalExceptionHandler.getInstance().init(this);
    }


}
